package com.turbo.cloud.openfeign.ums.client;

import com.turbo.cloud.core.api.Result;
import com.turbo.cloud.starter.feign.FeignClientByAuthentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhangluning
 */
@FeignClientByAuthentication(name = "mousika-sea-minio", contextId = "MinioFileClient")
public interface MinioFileClient {

    /**
     * 获取文件链接
     * @param fileId 文件ID
     * @param bucketName 桶名
     *
     * @return url 文件地址
     * */
    @GetMapping(value = {"/webservice/minio/getFileUrl" ,"/interface/minio/getFileUrl"})
    Result<String> getFileUrl(@RequestParam("fileId") String fileId, @RequestParam("bucketName") String bucketName);
}
